# $Id: PKGBUILD 180868 2013-03-27 14:19:48Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=gajim
pkgver=0.15.3
pkgrel=2
pkgdesc="A full featured and easy to use Jabber client"
arch=('any')
url="http://www.gajim.org/"
license=('GPL3')
depends=('pygtk' 'python2-pyopenssl' 'hicolor-icon-theme' 'ldns' 'python2-pyasn1')
makedepends=('gettext' 'intltool')
optdepends=('python2-dbus: dbus support'
            'farstream-0.1: for video/voice support'
            'gstreamer0.10-bad: for video/voice support'
	    'gstreamer0.10-python: for video/voice support'
            'gtkspell: for spelling support'
            'libxss: for idle module'
            'notification-daemon: for desktop notification'
            'python2-gnomekeyring: for GnomeKeyring support'
            'python2-crypto: support for E2E encryption'
            'python2-docutils: for RST generator support'
            'gupnp-igd: for UPnP-IGD support')
options=('!libtool')
install=gajim.install
source=(http://www.gajim.org/downloads/${pkgver%.*}/gajim-${pkgver}.tar.bz2 gajim-drill.patch)
sha1sums=('6d8b94d8b0446005e80b5cc4c9b6b8eedfc42c99'
          'aba73d11ca2594e9f1c5c88734273f80ae79e7ad')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -p1 -i "${srcdir}/gajim-drill.patch"
  PYTHON=python2 ./configure --prefix=/usr --enable-site-packages
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
